package com.example.demolearn_2.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.demolearn_2.MainActivity;
import com.example.demolearn_2.R;

public class LoginActivity extends AppCompatActivity implements View.OnClickListener {

    private Context m_Context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        findViewById(R.id.btn_start).setOnClickListener(this);
        m_Context = this;
    }

    @Override
    public void onClick(View view) {
        switch(view.getId()){
            case R.id.btn_start:
                startActivity(new Intent(m_Context,MainActivity.class));
                break;
            default:
                break;
        }
    }
}